﻿@model IEnumerable<McvParis_vert.Application.Models.Utilisateur>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Nom
        </th>
        <th>
            Prenom
        </th>
        <th>
            Email
        </th>
        <th>
            Adresse
        </th>
        <th>
            Code_Postal
        </th>
        <th>
            Ville
        </th>
        <th>
            Pseudo
        </th>
        <th>
            Mot_De_Passe
        </th>
        <th>
            Date_De_Naissance
        </th>
        <th>
            Statut
        </th>
        <th>
            Date_Inscription
        </th>
        <th>
            Derniere_Connexion
        </th>
        <th>
            Avatar
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nom)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Prenom)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Adresse)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Code_Postal)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Ville)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Pseudo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Mot_De_Passe)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Date_De_Naissance)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Statut)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Date_Inscription)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Derniere_Connexion)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Avatar)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
